import request from "../requestWaiFChat"
import type { MessageListResponseData } from './type'

enum API {
    GETMESSAGELIST_URL = '/message/list', // 获取所有聊天列表
}

// 获取所有聊天列表接口
export const reqGetMessageList = (userId: string) => request<any, MessageListResponseData>({url: API.GETMESSAGELIST_URL, method: 'get', params: { userId }})